<!-- 清罐 -->
<template>
  <div class="wrap">
    <div class="main">
      <div class="row">
        <div class="left">编号:</div>
        <div class="right">
          <input readonly="true" v-model="useInfo.driver_code" />
        </div>
      </div>
      <div class="row">
        <div class="left">姓名:</div>
        <div class="right">
          <input readonly="true" v-model="useInfo.driver_name" />
        </div>
      </div>
      <div class="row">
        <div class="left">手机:</div>
        <div class="right">
          <input readonly="true" v-model="useInfo.phone_number" />
        </div>
      </div>
      <div class="row">
        <div class="left">身份证:</div>
        <div class="right">
          <input readonly="true" v-model="useInfo.identification_no" />
        </div>
      </div>
      <div class="row">
        <div class="left">所属承运商:</div>
        <div class="right">
          <input readonly="true" v-model="useInfo.carrier_name" />
        </div>
      </div>
      <div class="row">
        <div class="left">驾驶证类型:</div>
        <div class="right">
          <input readonly="true" v-model="useInfo.driver_license_type" />
        </div>
      </div>
      <div class="row">
        <div class="left">驾驶证有效期:</div>
        <div class="right">
          <input readonly="true" v-model="useInfo.drive_date_from+' ~ '+useInfo.drive_date_to" />
        </div>
      </div>
      <div class="row">
        <div class="left">合同有效期:</div>
        <div class="right">
          <input readonly="true" v-model="useInfo.labor_date_from+' ~ '+useInfo.labor_date_to" />
        </div>
      </div>
      <div class="row">
        <div class="left">紧急联系人:</div>
        <div class="right">
          <input readonly="true" v-model="useInfo.emergency_contact" />
        </div>
      </div>
      <div class="row">
        <div class="left">紧急联系电话:</div>
        <div class="right">
          <input readonly="true" v-model="useInfo.emergency_tel" />
        </div>
      </div>
    </div>
  </div>

</template>
<script>
  export default {
    data() {
      return {
        useInfo: {},
      }
    },
    methods: {

    },
    created() {
      this.useInfo = JSON.parse(sessionStorage.getItem("loginData"));
      console.log(JSON.parse(JSON.stringify(this.useInfo)))
    },
  }

</script>
<style scoped>
  .main {
    padding-top: 0.7rem;
  }

  .row {
    display: flex;
    height: 1rem;
  }

  .row .left {
    width: 2.5rem;
    text-align: right;
    line-height: 0.9rem;
    height: 0.9rem;
  }

  .row .right {
    width: 6rem;
    margin-left: 0.2rem;
    text-align: left;
  }

  .row .right input {
    height: 0.9rem;
    line-height: 0.9rem;
    padding-left: 0.1rem;
    border: none;
    outline: none;
    width: 100%;
    border-bottom: 1px solid #ccc;
  }
  .button_wrap {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
  }

  .button_wrap button {
    padding: 0.45rem 0.55rem 0.4rem;
    border: none;
    font-size: 0.6rem;
    border-radius: 0.2rem;
    margin-right: 0.3rem;
  }
</style>
